<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Traits\Filters;


class ShopCom extends Model
{
    use Filters;
    
    protected $table = 'shop_coms';

    protected $guarded = [];

    public function commodity()
    {
        return $this->hasOne(Commodity::class,'id','commodity_id');
    }
    public function commodityAttr()
    {
        return $this->hasOne(CommodityAttr::class,'id','commodity_attr_id');
    }
    public function brand()
    {
        return $this->hasOne(Brand::class,'id','brand_id');
    }

    

}
